<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Message extends Model
{
    protected $table = 'messages';
    protected $fillable = ['title', 'content', 'read', 'send_uuid', 'accept_uuid', 'flag'];

    public $read_status = [
        '1' => '未读',
        '2' => '已读'
    ];

    // 消息是否已读
    const READ_NO = 1; // 未读
    const READ_YES = 2; // 已读

    // 消息标记
    const FLAG_SYSTEM_BACKUP = 12;
    const FLAG_SYSTEM_FRONT = 13;
    const FLAG_BACKUP_BACKUP = 22;
    const FLAG_BACKUP_FRONT = 23;
    const FLAG_FRONT_BACKUP = 32;
    const FLAG_FRONT_FRONT = 33;


}
